package array;
//删除对应下标元素


import java.util.Arrays;
import java.util.ArrayList;

public class Delete {
     public static void main(String[] args) throws Exception {
            
        String[] arr = { "one", "two", "three" };
        //单条
        ArrayList arr1 = new ArrayList(Arrays.asList(arr));
        //arr1.remove(1);

        //多条
        arr1.subList(0, 2).clear();//[start,end)
        System.out.println(arr1);
     }

    


}
